#!/usr/bin/env bash

source .env
target=/usr/local/apache-tomcat-8.0.42/webapps/"$VITE_DEPLOY_DIR"
rsync -avz ./dist/ kaiyi:"$target"
ossutil64 -c ./.ossutilconfig sync dist oss://lagrang/"$VITE_DEPLOY_DIR" -u

# rclone sync -P .\dist\ kaiyi-oss:lagrang/xiaohtx/
# rclone sync -P .\dist\ kaiyi:/usr/local/apache-tomcat-8.0.42/webapps/xiaohtx/
